<template>
  <div id="app">
    <loading v-model="isLoading"></loading>
    <transition >
               <keep-alive include="order_confirm">
                   <router-view ></router-view>
               </keep-alive>
    </transition>
  </div>
</template>

<script>
import { Loading } from "vux";
import { mapState } from "vuex";

export default {
  name: "app",
  components: {
    Loading
  },
  computed: {
    ...mapState({
      isLoading: state => state.vux.isLoading
    })
  }
};
</script>

<style lang="less">
@import "~vux/src/styles/reset.less";

body {
  background-color: #f4f8fb;
}
</style>
